package cn.com.ebidding.file;

import cn.com.ebidding.file.entity.VirtualFile;
import org.springframework.web.multipart.MultipartFile;

import java.io.File;
import java.io.InputStream;

/**
 * @author 扫地僧 (saods@ebidding.com.cn)
 * @version 1.0
 * @website https://ksp.ebidding.com.cn
 * @date 2019/2/11 14:37
 * @since 1.8
 */
public interface ApiClient {

    VirtualFile uploadImg(MultipartFile file);

    VirtualFile upload(MultipartFile file);

    VirtualFile uploadImg(File file);

    VirtualFile upload(InputStream is, String key);

    boolean removeFile(String key);
}
